package com.youlu.campus.service.aomen;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class AoMenResult<T> {

    /**
     * 成功
     */
    public static final int SUCCESS_CODE = 200;

    /**
     * 系统内部异常
     */
    public static final int INTERNAL_ERROR_CODE = 500;

    /**
     *
     * appid 或 appsecret 错误/token 错误
     */
    public static final int NO_AUTHORIZATION = 401;

    /**
     * 请求参数错误
     */
    public static final int BAD_REQUEST = 400;

    /**
     * 无效请求
     */
    public static final int NOT_FOUND_404 = 404;
    /**
     * 503错误
     * 系统繁忙，请稍后重试
     */
    public static final int other_error = 503;




    private int code;

    private String message;

    private T data;

}
